-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waybar/weather #254
base: master
Are you sure you want to change the base?
Waybar/weather #254
Conversation
Thanks, @Guillaumecoi. In this repo, we exposed [waybar.weather]
loc= true As bash do not have an ability to parse a toml file, we have an intermediary script that watches the So I would suggest renaming the variables with WEATHER_TEMP_UNIT : c or f (default: c)
WEATHER_TIME_FORMAT: 12h or 24h (default: 12h)
WEATHER_WINDSPEED_UNIT: km/h or mph (default: Km/h)
WEATHER_SHOW_ICON: True or False (default: True)
WEATHER_SHOW_LOCATION: True or False (default: False)
WEATHER_SHOW_TODAY_DETAILS: True or False (default: True)
WEATHER_FORECAST_DAYS: 0,1,2,3 (default: 3) For this one let's suport 2 variables for now, and will deprecate soon.
This way the config.toml interface will have [weather]
temperature_unit=c
time_format=
windspeed_unit=
show_icon=
show_location=
show_today=
forecast_days= |
Thank you for your explanation since I did not get how the
I still have some questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the typos in config.toml
As for I hope this is pretty clear now. We knew that python has a TOML lib but for now I want to unify the parsers in a single module so I want this MR to use the environment variable for now.
Let's break it. I guess only one user is using the feature as of the moment, I'll try to find that specific issue. [weather]
foo=bar |
So now I need to change the WEATHER_LOC var defined in |
Let's just unify it under [weather]. |
Pull Request
Request is based on issue 252
Description
Tweaks to the weather Script to make it more versatile
~/.local/state/hyde/config
.If the input would be invalid it is automatically changed into the default.
Type of change
Please put an
x
in the boxes that apply:Checklist
Please put an
x
in the boxes that apply:Screenshots
How it it was: (ignore my clock)
How it is now with default settings:
Example with changed settings:
Additional context